import 'package:app/pages/chat/chat_binding.dart';
import 'package:app/pages/chat/chat_screen.dart';
import 'package:app/pages/index/index_binding.dart';
import 'package:app/pages/index/index_page.dart';
import 'package:app/pages/login/auth_binding.dart';
import 'package:app/pages/login/login_screen.dart';
import 'package:app/pages/login/intro.dart';
import 'package:app/pages/publish/content.dart';
import 'package:app/pages/publish/body.dart';
import 'package:app/pages/scan/scan_screen.dart';
import 'package:app/pages/splash/index.dart';
import 'package:app/pages/tikvideo/index.dart';
import 'package:get/get.dart';
part 'my_routes.dart';

class AppPages {
  static const INITIAL = AppRoutes.SPLASH;

  static final List<GetPage> routes = [
    GetPage(
        name: AppRoutes.SPLASH, page: () => Splash(), binding: SplashBinding()),
    GetPage(
        name: AppRoutes.Home,
        page: () => IndexPage(),
        binding: IndexBinding(),
        children: [
          GetPage(
            name: AppRoutes.PublishPage,
            page: () => PublishPage(),
          ),
          GetPage(
            name: AppRoutes.PushContent,
            page: () => PushContent(),
          ),
          GetPage(
            binding: ChatBind(),
            name: AppRoutes.ChatScreen,
            page: () => ChatScreen(),
          )
        ]),
    GetPage(
        name: AppRoutes.TikVideoScreen,
        page: () => TikVideoScreen(),
        binding: VideosBinding()),
    GetPage(
      name: AppRoutes.ScanScreen,
      page: () => QRScreen(),
    ),
    GetPage(
        name: AppRoutes.Introduce,
        page: () => Intro(),
        binding: AuthBinding(),
        children: [
          GetPage(
            transition: Transition.fadeIn,
            name: AppRoutes.Login,
            page: () => LoginScreen(),
          )
        ]),
  ];
}
